import request from '@/utils/request'

// 查询应用接口列表
export function listUrl(query) {
  return request({
    url: '/devops/url/list',
    method: 'get',
    params: query
  })
}

// 查询应用接口详细
export function getUrl(id) {
  return request({
    url: '/devops/url/' + id,
    method: 'get'
  })
}

// 新增应用接口
export function addUrl(data) {
  return request({
    url: '/devops/url',
    method: 'post',
    data: data
  })
}

// 修改应用接口
export function updateUrl(data) {
  return request({
    url: '/devops/url',
    method: 'put',
    data: data
  })
}

// 删除应用接口
export function delUrl(id) {
  return request({
    url: '/devops/url/' + id,
    method: 'delete'
  })
}

// 导出应用接口
export function exportUrl(query) {
  return request({
    url: '/devops/url/export',
    method: 'get',
    params: query
  })
}